Related Vulnerabilities: CVE-2021-3935  

A security issue has been found in PgBouncer before version 1.16.1. A man-in-the-middle with the ability to inject data into the TCP connection could stuff some cleartext data into the start of a supposedly encryption-protected database session. This could be abused to send faked SQL commands to the server, although that would only work if PgBouncer did not demand any authentication data. (However, a PgBouncer setup relying on SSL certificate authentication might well not do so.)

Severity Medium

Remote Yes

Type Man-in-the-middle

Description

A security issue has been found in PgBouncer before version 1.16.1. A man-in-the-middle with the ability to inject data into the TCP connection could stuff some cleartext data into the start of a supposedly encryption-protected database session. This could be abused to send faked SQL commands to the server, although that would only work if PgBouncer did not demand any authentication data. (However, a PgBouncer setup relying on SSL certificate authentication might well not do so.)

AVG-2578 pgbouncer 1.16.0-1 Medium Vulnerable

https://github.com/pgbouncer/pgbouncer/commit/e4453c9151a2f5af0a9cb049b302a3f9f9654453